

const osnApi={
    async init(){
        const result = await window.tm?.ipcRenderer.invoke('testIpc',{name:'你好'})
        console.log('testtesttesttesttesttes result',result)
        window.osn.on('test',(e,data)=>{
            console.log('testtesttesttesttesttesttestData',data)
        })
        window.osn.on('test',(e,data)=>{
            console.log('testtesttestt22222222222222',data)
        })
    }
}

export  default  osnApi